require('dotenv').config();

module.exports = {
  // 服务端口
  port: process.env.PORT || 3000,
  
  // 数据库配置
  database: {
    host: process.env.DB_HOST,
    port: process.env.DB_PORT,
    user: process.env.DB_USER,
    password: process.env.DB_PASSWORD,
    database: process.env.DB_NAME
  },
  
  // LLM API配置
  llm: {
    apiUrl: process.env.LLM_API_URL,
    apiToken: process.env.LLM_API_TOKEN,
    model: process.env.LLM_MODEL
  },
  
  // 翻译API配置
  translate: {
    apiUrl: process.env.TRANSLATE_API_URL,
    model: process.env.TRANSLATE_MODEL
  },
  
  // 文件上传配置
  upload: {
    uploadDir: process.env.UPLOAD_DIR || './uploads',
    avatarDir: process.env.AVATAR_DIR || './uploads/avatars'
  }
};


